import { defineStore } from "pinia";
import { ref } from "vue";

export const useUserStore =defineStore('ca-user',()=>{
  // 用户信息
  const  user = ref()
  const setUser = (userInfo:any)=>{
    user.value = userInfo
  }
  const delUser = ()=>{
    user.value = ''
  }
  return {user,setUser,delUser}
  },{
    persist:true
  }
)
